package com.ydy.service.role;

import java.util.List;

import com.ydy.dto.RelationAdminRoleDTO;
import com.ydy.dto.RelationStaffRoleDTO;
import com.ydy.model.Role;
import com.ydy.model.Staff;
import com.ydy.vo.other.BaseVo;
import com.ydy.vo.other.PageVo;

public interface RoleService {

	PageVo<Role> select(Role role, Integer page, Integer size);

	Role saveOrUpdate(Role role);

	BaseVo status(Long id, Staff staff);

	BaseVo delete(Long id, Staff staff);

	Role selectById(Long id, Staff staff);

	List<Role> selectByAdminId(Long adminId);

	List<Role> selectByStaffId(Long staffId);

	BaseVo saveAdminRole(RelationAdminRoleDTO dto);

	BaseVo saveStaffRole(RelationStaffRoleDTO dto);

}
